Skip to main content

All Questions

1vote
2answers
2kviews

How may I watch for the creation of a particular "trigger file"?

I need to create a shell script that executes an application when a file called start is created in a particular directory. How may I write a shell script that waits for the creation of a file with a ...
kumar shivam's user avatar
92votes
1answer
12kviews

Why does the following bash script delete itself?

If you create an executable file with the following contents, and run it, it will delete itself. How does this work? #!/bin/rm
Stack Exchange Broke The Law's user avatar
0votes
5answers
4kviews

On executable files in Linux [closed]

It is said that in linux, unlike Windows, there's not a clear border between executables and other files. Well, in Windows, I write a C++ program, then it is precompiled, compiled and then linked to ...
user avatar

close